package sctu.edu.java.year2016.team01.xuhanmei.day20160525;

/**
 * Created by Administrator on 2016/5/25.
 */
class A {
    int i = 10;
    int j = 20;//初始值。
}


public class NeiCun {
    public static void main(String[] args) {
        A aa1 = new A();
        A aa2 = new A();//分配新的内存空间


        aa1.i = 50;
        aa1.j = 80;


        aa2.i = 99;
        aa2.j = 40;//重新赋值


        System.out.println("aa1.i与aa1.j的值是：" + aa1.i + "  " + aa1.j);
        System.out.println("aa2.i与aa2.j的值是：" + aa2.i + "  " + aa2.j);

    }
}
